
function getService( url ){
    var newurl = url;
    if( url.indexOf( '?' ) >= 0 ){
        newurl += "&_TIMEx=" + new Date();
    }
    else{
        newurl += "?_TIMEx=" + new Date();
    }
	var xmlhttp = new ActiveXObject( "Msxml2.XMLHTTP" );
	xmlhttp.open( "GET", newurl , false );
    xmlhttp.send();
	
    return xmlhttp.responseXML;
}

function postService( url , dom ){
	var xmlhttp = new ActiveXObject( "Msxml2.XMLHTTP" );
	xmlhttp.open( "POST", url , false );
	xmlhttp.send( dom );
	alert( xmlhttp.responseXML.xml );
    return xmlhttp.responseXML;
}

function postServiceText( url , text ){
    try{
        var xmlhttp = new ActiveXObject( "Msxml2.XMLHTTP" );
        xmlhttp.open( "POST", url , false );
        xmlhttp.send( text );
        return xmlhttp.responseXML;
    }
    catch( e ){
        return null;
    }
}

function transfer( node , xsl ){
    if( node == null || xsl == null ){
        return;
    }
    var stylesheet   = new ActiveXObject("Msxml2.DOMDocument");
    stylesheet.async = false;
    stylesheet.resolveExternals = false;
    stylesheet.load( xsl );
    return node.transformNode(stylesheet);
}

